
function changepic() {
	let reads = new FileReader();
	f = document.getElementById('file').files[0];
	reads.readAsDataURL(f);
	let result = null;
	reads.onload = function(e) {
		var newImg = `<img class="uploadImg" src=${this.result} />`;
		result= this.result;
	};
	return result;
}